package com.junxonline.instant.terminal.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Netty配置类
 *
 * @author JunX
 * @date 2021-09-03
 */
@Data
@Component
@ConfigurationProperties(prefix = "netty")
public class NettyConfig {

    /**
     * 监听路径
     */
    private String path;

    /**
     * 监听端口
     */
    private Integer port;

    /**
     * BossGroup线程数
     */
    private Integer bossGroupCount;

    /**
     * WorkGroup线程数
     */
    private Integer workGroupCount;

    /**
     * 心跳时间
     */
    private Integer heartBeatTime;

    /**
     * 连接超时时间
     */
    private Integer connectionTimeoutMs;

}
